﻿// © 2005 IDesign Inc. All rights reserved 
//Questions? Comments? go to 
//http://www.idesign.net

using System;

namespace CredentialsManagerClient
{
   interface IRoleManager
   {
      void AddUsersToRole(string application,string[] userNames,string role);
      void AddUsersToRoles(string application,string[] userNames,string[] roles);
      void AddUserToRole(string application,string userName,string role);
      void AddUserToRoles(string application,string userName,string[] roles);
      void CreateRole(string application,string role);
      bool DeleteRole(string application,string role,bool throwOnPopulatedRole);
      void DeleteAllRoles(string application,bool throwOnPopulatedRole);
      string[] GetAllRoles(string application);
      string[] GetRolesForUser(string application,string userName);
      string[] GetUsersInRole(string application,string role);
      bool IsRolesEnabled(string application);
      bool RoleExists(string application,string role);
      void RemoveUserFromRole(string application,string userName,string roleName);
      void RemoveUsersFromRole(string application,string[] users,string role);
      void RemoveUserFromRoles(string application,string user,string[] roles);
      void RemoveUsersFromRoles(string application,string[] users,string[] roles);
   }
}